class Test:
    
    def __enter__(self):
        print '__enter__'
        return 1
    
    def __exit__(self, *args):
        print '__exit__'
        return True

with Test() as t:
    print("t is not the result of test(), it is __enter__ returned")
